<?php
# OALib目录
define('SDK_OA_LIB', '/opt/apipool/OALib/');
# OA SDK OALib
define('SDK_OA_SDK', '/opt/op/sdk/');
# APP ROOT
define('SDK_APP_ROOT', dirname(dirname(__FILE__)) . OS_PATH_SEP);
if (!defined('__OA_ENV')) {
    require_once(SDK_OA_LIB."util/config/Config.php");
}
# 环境
if (__OA_ENV != 'ONLINE'){
    define('SDK_ENV', 'webserver.');//测试环境
    # Log  Success?
    define('LOG_SUCCESS', TRUE);
    # Alarm 
	define('SDK_ALARM', FALSE);
} else {
    define('SDK_ENV', 'webonline.');//线上环境  
    # Log  Success?
    define('LOG_SUCCESS', TRUE);
    # Alarm 
	define('SDK_ALARM', TRUE);
}
# Config Path
define('SDK_CONFIGS_PATH', dirname(__FILE__) . OS_PATH_SEP);
# Log  Switches
define('SDK_LOG_INFO', TRUE);
# env test
define('SDK_ENV_TEST', 'pre');
# env online
define('SDK_ENV_ONLINE', 'online');
# log return attribute
define('SDK_LOG_REUTRN', 'return');
# log params attribute
define('SDK_LOG_PARAMS', 'params');
# log location attribute
define('SDK_LOG_LOCATION', 'location');
# log exception attribute
define('SDK_LOG_EXCEPTION', 'exception');
# log method attribute
define('SDK_LOG_METHOD', 'method');
# log env attribute
define('SDK_LOG_ENV', 'env');
# 设置超时时间
ini_set('default_socket_timeout', 20);
